% path = fullfile(matlabroot,'toolbox','shared','drivingscenario', ...
%     'PrebuiltScenarios','EuroNCAP');
% addpath(genpath(path)) % Add folder to path
% drivingScenarioDesigner('AEB_PedestrianChild_Nearside_50width.mat')
% rmpath(path) % Remove folder from path


%% Create a simple driving scenario by using a drivingScenario object.
scenario = drivingScenario;
roadCenters = [0 0 0; 50 0 0];
road(scenario,roadCenters);

egoVehicle = vehicle(scenario,'ClassID',1,'Position',[5 0 0]);
waypoints = [5 0 0; 45 0 0];
speed = 30;
smoothTrajectory(egoVehicle,waypoints,speed)

%% Create a radar sensor by using a drivingRadarDataGenerator object, 
radar = drivingRadarDataGenerator('MountingLocation',[0 0 0]);

%% Create a camera sensor by using a visionDetectionGenerator object.
camera = visionDetectionGenerator('SensorLocation',[0 0],'Yaw',-180);

%% Import the scenario, front-facing radar sensor, and rear-facing camera sensor into the app.
drivingScenarioDesigner(scenario,{radar,camera})


% path = fullfile(matlabroot,'toolbox','shared','drivingscenario','PrebuiltScenarios');
% addpath(genpath(path)) % Add folder to path
% drivingScenarioDesigner('EgoVehicleGoesStraight_VehicleFromLeftGoesStraight.mat')
% rmpath(path) % Remove folder from path



